package y2016.date0916.pm.继承与super;

public class Parent {
    public Parent() {
        this(0);
    }

    public Parent(int i) {
        this(i, "我是父");
    }

    public Parent(int i, String str) {
        System.out.println(str + i);
    }

    protected void print(String str) {
        System.out.println("父类打印方法：" + str);
    }
}


